TsgCollection
Unit:sgLists
Description
TsgCollection
represents collection of items.
Syntax
type TsgCollection = class(TsgBaseList)
Properties
Properties | Description |
---|---|
First | The property indicates the first item in the collection. |
Items | The property lists the object references. |
Last | The property indicates the last item in the collection. |
Properties derived from TsgBaseList | Description |
---|---|
Capacity | The property specifies the allocated size of the array of pointers maintained by the TsgBaseList object. |
Count | The property indicates the number of entries in the list that are in use. |
Dublicates | The property specifies how to handle items with same values. |
ListType | The property specifies the type of elements maintained by the list. |
ProcCompare | The property specifies the procedure used to compare items in the list. |
Sorted | The property indicates whether the items are sorted or not. |
Methods
Methods | Description |
---|---|
Add | The method a new item at the end of the collection. |
ClearTypeList | The method deletes all the items of a specified data type. |
Create | The method creates a new list and initializes its data. |
IndexOf | The method returns the index of separate item in the collection by its hash code. |
Methods derived from TsgBaseList | Description |
---|---|
AppendDynArray | The method appends a dynamic array to the list. |
Assign | The method copies elements of another list to this one. |
Clear | The method deletes all items from the list. |
CopyFrom | The method copies data from a specified list to this list. |
CopyTo | The method copies data from this list to a specified list. |
Create | The method creates a new list and initializes its data. |
Delete | The method removes the item(s) at a specific position from the list. |
Destroy | The method destroys an instance of TsgBaseList. |
FillChar | The method is for internal use. |
Flip | The method performs mirrored rearrangement of the items. |
High | The method returns the index of last item in the list. |
IsEqual | The method checks whether this list and a specified list are equal. |
IsItemsUnique | The method checks whether the Items array contains unique data set. |
Sort | The method performs a sort on the list. |
SwapItems | The method swaps two items in the list. |